import type { Component } from 'vue'

export default class Page {
  public name = ''; // 路由名称
  public path = ''; // 路由路径
  public tag = ''; // tag中的描述
  private _component?: any;  // 自定义组件

  // 名称和路径
  constructor(name = '', path = name, tag = name) {
    this.name = name || ''
    this.path = path || ''
    this.tag = tag || ''
  }

  // 组件
  component(c: Component) {
    this._component = c
  }
  getComponent() {
    return this._component
  }
}
